#ifndef _keyframe_h_included_
#define _keyframe_h_included_
#include <d3dx9.h>
#include <d3d9.h>
#include <string>
#include "DXUtil.h"
#include "Animation.h"

//This class is responsible for keeping data about a key frame
class KeyFrame
{
	protected:
		float mX,mY,mZ, mTFinal;
		bool mStart;
		float mStartTime;
		D3DVECTOR mDelta;
		D3DXQUATERNION*	mQuatOrientation;
		D3DXQUATERNION*	mOrigOrientation;
		float mSlerpAmount;
		float mDT;
		
	public:
		KeyFrame();
		KeyFrame(float x, float y, float z, D3DVECTOR* rotVect, float w, float TFinal);

		float GetTFinal();

	 void Update(LPDIRECT3DDEVICE9 d3ddev, D3DVECTOR* mModel, D3DVECTOR* pRot, D3DXMATRIX* pRotMatrix, double pElapsedTime, double pTotalTime);
};
#endif
